#!/bin/bash
echo "测试 AICoder 增强版 cbp2make..."

cd /d/vc/UEStudio/src/tools/cbp2make_ai

# 编译原始版本
echo "编译原始版本..."
g++ -o bin/cbp2make_original src/cbp2make.cpp src/cbproject.cpp src/cbworkspace.cpp src/makefile.cpp lib/*.cpp lib/tinyxml/*.cpp -Ilib -Ilib/tinyxml -Isrc -Wall -std=c++11

# 编译 AI 增强版本  
echo "编译 AI 增强版本..."
./apply_aicoder_patches.sh
g++ -o bin/cbp2make_ai src/*.cpp lib/*.cpp lib/tinyxml/*.cpp -Ilib -Ilib/tinyxml -Isrc -Wall -std=c++11 -DAICODER_ENHANCED

echo "编译完成!"
echo "原始版本: bin/cbp2make_original"
echo "AI 增强版: bin/cbp2make_ai"
echo "测试命令: ./bin/cbp2make_ai --ai-mode 项目文件.cbp"
